﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Business;
using EntityModel;

namespace LMS.Admin.Controllers
{
    public class ChannelController : BaseController<Channel>
    {
        //
        // GET: /Channel/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult ChannelOpen()
        {
            var channelList = ProcessHelper<ChannelBC>().GetChannelsMenu();
            ViewData["ChannelList"] = channelList.Select(t => new { Key = t.ChannelID, Value = t.ShortName }).ToList();

            return View();
        }

        public ActionResult SaveChannelOpen(Models.Channel.ChannelOpenDaily model)
        {
            return View(model);
        }
    }
}
